#ifndef _T_H_h_
#define _T_H_h_

#include "tim.h"


#define t_h_query_interval          200
#define t_h_query_interval_answer   50

typedef enum{
	query_none=0,
	query_1_hot_wind=1,
	query_1_hot_wind_ing=31,
	query_2_hot_wind=2,
	query_2_hot_wind_ing=32,
	query_3_hot_wind=3,
	query_3_hot_wind_ing=33,
	query_4_hot_wind=4,
	query_4_hot_wind_ing=34,
	query_1_grain=5,
	query_1_grain_ing=35,
	query_2_grain=6,
	query_2_grain_ing=36,
	query_3_grain=7,
	query_3_grain_ing=37,
	query_4_grain=8,
	query_4_grain_ing=38,
	query_5_grain=9,
	query_5_grain_ing=39,
	query_6_grain=10,
	query_6_grain_ing=40,
	query_7_grain=11,
	query_7_grain_ing=41,
	query_fire=12,
	query_fire_ing=42,
	query_humi_mid=13,
	query_humi_mid_ing=43,
	query_humi_bottom=14,
	query_humi_bottom_ing=44,
}T_H_QUERY_STEP;
typedef struct{
	T_H_QUERY_STEP t_h_query_step;
	u8 is_query_answered;
	sys_tim query_time;
}_t_h_query_state;
extern _t_h_query_state t_h_query_state;



void RS485_T_H_app(void);

#endif

